<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>25.栅格整体对齐方式处理</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }

    article {
      margin: 0 auto;
      width: 400px;
      height: 100px;
      border: solid 5px silver;
      display: grid;
      grid-template-columns: repeat(4, 100px);
      /* justify-content: space-evenly;
      align-content: center; */
      /* place-content: start center; */
      /* place-items: center end; */
    }



    div {
      background-color: blueviolet;
      background-clip: content-box;
      box-sizing: border-box;
      color: white;
      height: 50px;
      border: solid 1px #DDD;
      font-size: 15px;
      padding: 10px;
    }

    div:nth-child(4){
      place-self: center end;
    }
  </style>
</head>

<body>
  <article>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>

  </article>
</body>

</html>